import java.util.ArrayList;
import java.util.List;

/**
 * @author :Colin
 * @version 创建时间: 2021/6/26 10:49
 */
public class Exercise1 {
    String str= "good";
    Integer i1=129;
    Integer i2=29;
    char[] ch = {'a','b','c'};

    public static void main(String[] args) {
        List list = new ArrayList();
        list.add(1);
        list.add(2);
        Exercise1 ex = new Exercise1();
        ex.change(ex.str,ex.ch,list,ex.i1,ex.i2);
        System.out.println(ex.str + "and");
        System.out.println(ex.ch);
        System.out.println(list);
        System.out.println(ex.i1);
        System.out.println(ex.i2);
    }

    private void change(String str,char ch[],List list,Integer i1,Integer i2) {
        list.set(0,5);
        str ="test ok";
        ch[0] = 'g';
        i1=130;
        i2=30;

    }
}
